package org.spring.springboot.domain;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class Goods {

   
    private int id;
 
    private String name;
    
    private double price;

	private String description;
	@JSONField (format="yyyy-MM-dd HH:mm:ss")  
    private Date createDate;
	@JSONField (format="yyyy-MM-dd HH:mm:ss")  

    private Date invalidDate;
    
    private String img;
    
    private int categoryId;
    
    public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(Date invalidDate) {
		this.invalidDate = invalidDate;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

}
